
export const LoginByUserName = ()=>{

    return new Promise(function (resolve, reject) {
      setTimeout(function () {
        resolve({
          data: {
            token: 'xxxxxxx',

          }
        });
      }, 1000)
    });

}


export const getInfo = ()=>{

    return new Promise(function (resolve, reject) {
      setTimeout(function () {
        resolve({
          data: {
            role: ['admin'],
            name: 'xxxxxxx',
            avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
            uid: 'xxxxxxx',
            introduction: 'xxxxxxx',

          }
        });
      }, 1000)
    });

}

export const logout = ()=>{

    return new Promise(function (resolve, reject) {
      setTimeout(function () {
        resolve();
      }, 2000)
    });

}
